package com.roc.steelend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * 銷售細節
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sale_detail")
public class SaleDetail {

    @TableId(type = IdType.AUTO)
    private Integer saleDetailId;
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger saleOrderId;
    private Integer smallTypeId;
    private String specification;
    private BigDecimal thickness;
    private BigDecimal long1;
    private BigDecimal wide;
    private BigDecimal high;
    private BigDecimal price;
    private Integer quantity;
    private BigDecimal weight;
    private Integer way;

    @TableField(exist = false)
    private  SmallType smallType;


}
